/*
 rustc --crate-name t1 --edition=2018 src/t1.rs --error-format=json --json=diagnostic-rendered-ansi --crate-type bin --emit=dep-info,link -C opt-level=3 -Cembed-bitcode=no -C metadata=819730c5ece5238d -C extra-filename=-819730c5ece5238d --out-dir /home/vagrant/proj/rust/rust_llvm/rust_code/target/release/deps -L dependency=/home/vagrant/proj/rust/rust_llvm/rust_code/target/release/deps --emit=llvm-bc
 */

fn func(mut t: i32) {
    let v1 = 23 + t;
    let v2 = "xxx";
    let p1 = &v1;
    let p2 = &v2;
    println!("vals: {} {}", *p1, *p2);
}

fn main() {
    let t = 1;
    func(t);
    println!("This is T1!");
}
